/*
 * $Id: netdb.h,v 1.3 2005-04-25 03:41:26 bacon Exp $
 */

#ifndef _XP_NET_NETDB_H_
#define _XP_NET_NETDB_H_

#include <xp/types.h>
#include <xp/macros.h>

struct xp_addrinfo_t
{
	int __dummy__;
};

typedef struct xp_addrinfo_t xp_addrinfo_t;

#ifdef __cplusplus
extern "C" {
#endif

int xp_getaddrinfo (
	const xp_char_t* host, const xp_char_t* service, 
	xp_addrinfo_t* hints, xp_addrinfo_t** result);
void xp_freeaddrinfo (xp_addrinfo_t* ai);


#ifdef __cplusplus
}
#endif
#endif
